package com.noahplat.oufu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 功能:调高德第三方接口
 * name:宋彦磊
 * time:2021.02.25
 */

@FeignClient(name = "realweather", url = "https://restapi.amap.com")
public interface OtherMapFeign {
    /*GPS坐标转高德坐标*/
    @GetMapping("/v3/assistant/coordinate/convert")
    String getGDLocation(@RequestParam String key, @RequestParam String locations, @RequestParam String coordsys);
    /*通过坐标获取位置详情*/
    @GetMapping("/v3/geocode/regeo")
    String getLocationInfo(@RequestParam String key, @RequestParam String location, @RequestParam String extensions);
}
